# coding=utf8
from app.extensions import db
from app.modules.common.utils import JsonEncoder

"""
状态字典
"""


class Status(db.Model, JsonEncoder):
    __tablename__ = "status"
    status_id = db.Column(db.Integer, primary_key = True)
    status = db.Column(db.String)
    desc = db.Column(db.String)

    def to_dict(self):
        return {
            'id': self.id,
            'status': self.status,
            'desc': self.desc,
        }
